package com.ebraga.trackerclub.android.thread;

import java.util.concurrent.Executors;
import java.util.concurrent.ScheduledExecutorService;

public enum ExecutorServicePool {

	SYNC("SYNC EXECUTOR");
	
	private final String key;
	private final ScheduledExecutorService scheduledThreadPool;
	
	private ExecutorServicePool(String key) {
		this.key = key;
		this.scheduledThreadPool = Executors.newSingleThreadScheduledExecutor();
	}
	
	public String getKey(){
		return this.key;
	}
	
	public ScheduledExecutorService getInstance(){
		return this.scheduledThreadPool;
	}
}
